/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_application_content")
//@NamedQueries({@NamedQuery(name = "TApplicationContent.findAll", query = "SELECT t FROM TApplicationContent t"), @NamedQuery(name = "TApplicationContent.findById", query = "SELECT t FROM TApplicationContent t WHERE t.id = :id"), @NamedQuery(name = "TApplicationContent.findByContentid", query = "SELECT t FROM TApplicationContent t WHERE t.contentid = :contentid"), @NamedQuery(name = "TApplicationContent.findByStrategy", query = "SELECT t FROM TApplicationContent t WHERE t.strategy = :strategy"), @NamedQuery(name = "TApplicationContent.findByLanguage", query = "SELECT t FROM TApplicationContent t WHERE t.language = :language"), @NamedQuery(name = "TApplicationContent.findByOnline", query = "SELECT t FROM TApplicationContent t WHERE t.online = :online"), @NamedQuery(name = "TApplicationContent.findByVersion", query = "SELECT t FROM TApplicationContent t WHERE t.version = :version"), @NamedQuery(name = "TApplicationContent.findByCldcVersion", query = "SELECT t FROM TApplicationContent t WHERE t.cldcVersion = :cldcVersion"), @NamedQuery(name = "TApplicationContent.findByMidpVersion", query = "SELECT t FROM TApplicationContent t WHERE t.midpVersion = :midpVersion"), @NamedQuery(name = "TApplicationContent.findByAudituser", query = "SELECT t FROM TApplicationContent t WHERE t.audituser = :audituser"), @NamedQuery(name = "TApplicationContent.findByOrdered", query = "SELECT t FROM TApplicationContent t WHERE t.ordered = :ordered"), @NamedQuery(name = "TApplicationContent.findByServiceCount", query = "SELECT t FROM TApplicationContent t WHERE t.serviceCount = :serviceCount")})
public class TApplicationContent implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Basic(optional = false)
    @Column(name = "contentid")
    private String contentid;
    @Column(name = "strategy")
    private String strategy;
    @Column(name = "language")
    private String language;
    @Column(name = "online")
    private String online;
    @Column(name = "version")
    private String version;
    @Column(name = "cldc_version")
    private String cldcVersion;
    @Column(name = "midp_version")
    private String midpVersion;
    @Column(name = "audituser")
    private String audituser;
    @Column(name = "ordered")
    private Integer ordered;
    @Column(name = "service_count")
    private Integer serviceCount;

    public TApplicationContent() {
    }

    public TApplicationContent(Integer id) {
        this.id = id;
    }

    public TApplicationContent(Integer id, String contentid) {
        this.id = id;
        this.contentid = contentid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContentid() {
        return contentid;
    }

    public void setContentid(String contentid) {
        this.contentid = contentid;
    }

    public String getStrategy() {
        return strategy;
    }

    public void setStrategy(String strategy) {
        this.strategy = strategy;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getOnline() {
        return online;
    }

    public void setOnline(String online) {
        this.online = online;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getCldcVersion() {
        return cldcVersion;
    }

    public void setCldcVersion(String cldcVersion) {
        this.cldcVersion = cldcVersion;
    }

    public String getMidpVersion() {
        return midpVersion;
    }

    public void setMidpVersion(String midpVersion) {
        this.midpVersion = midpVersion;
    }

    public String getAudituser() {
        return audituser;
    }

    public void setAudituser(String audituser) {
        this.audituser = audituser;
    }

    public Integer getOrdered() {
        return ordered;
    }

    public void setOrdered(Integer ordered) {
        this.ordered = ordered;
    }

    public Integer getServiceCount() {
        return serviceCount;
    }

    public void setServiceCount(Integer serviceCount) {
        this.serviceCount = serviceCount;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TApplicationContent)) {
            return false;
        }
        TApplicationContent other = (TApplicationContent) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TApplicationContent[id=" + id + "]";
    }

}
